package com.project2.mapper;

import com.project2.bean.po.MarketBrand;
import com.project2.bean.po.MarketBrandExample;
import com.project2.bean.vo.DataInAdminBrandVo;
import com.project2.bean.vo.Brand;
import com.project2.bean.vo.DataInBrandUpdateVo;
import com.project2.bean.vo.DataInWxBrandDetailVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketBrandMapper {
    long countByExample(MarketBrandExample example);

    int deleteByExample(MarketBrandExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketBrand record);

    int insertSelective(MarketBrand record);

    List<MarketBrand> selectByExample(MarketBrandExample example);

    MarketBrand selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketBrand record, @Param("example") MarketBrandExample example);

    int updateByExample(@Param("record") MarketBrand record, @Param("example") MarketBrandExample example);

    int updateByPrimaryKeySelective(MarketBrand record);

    int updateByPrimaryKey(MarketBrand record);

    List<DataInAdminBrandVo> queryBrandInfoByNameAndDesc(String name, String desc);

    List<Brand> selectBrandIdAndName();

    DataInBrandUpdateVo selectUpdateBrandInfoById(Integer id);

    DataInWxBrandDetailVo queryBrandInfoById(Integer id);
}